package com.jnshu.service;

import com.jnshu.dto.admin.RoleDto;
import com.jnshu.pojo.Manage;
import com.jnshu.pojo.Role;
import com.jnshu.tools.resultUtils.PageBean;
import com.jnshu.tools.resultUtils.ResultBean;

import java.util.List;

/**
 * @author Martin
 * @date 2019/8/12 21:23
 */
public interface RoleService {
    //根据id删除
    ResultBean deleteByPrimaryKey(Long id);
    //新增角色
    ResultBean insertSelective(RoleDto roleDto,String loginId);
    //根据id更新
    ResultBean updateByPrimaryKeySelective(RoleDto roleDto,String loginId);
    //分页列表查询
    PageBean selectRoleList(int pageNum, int pageSize);
    //根据id查询
    ResultBean selectRoleById(long id);

}
